<!--
  @author heguanghua
  @since 2019/06/13 13:58
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--搜索条件置于单独的layui-card-body中
    与表格平级(表格置于另一layui-card-body种)
    -->
<div class="layui-card-body" th:fragment="query">

    <!--每个zmn-form-item一行，每行4列
        支持页面自适应，1280分辨率下不折行
        -->
    <div class="zmn-form-item">

        <!--默认情况下标签item-inline占据1列-->
        <div class="item-inline">
            <label class="inline-label">公司名称：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <!--默认情况下标签box-input-inline占满整个inline-box-cc标签-->
                    <div class="box-input-inline">
                        <input type="text" name="companyName" th:value="${vo.companyName}" placeholder="支持模糊查询" autocomplete="off" class="layui-input" maxlength="200"/>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">账户名称/ID：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <!--默认情况下标签box-input-inline占满整个inline-box-cc标签-->
                    <div class="box-input-inline">
                        <input type="text" name="accountNameOrId" th:value="${vo.accountNameOrId}" placeholder="支持模糊查询" autocomplete="off" class="layui-input" maxlength="200"/>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">开通状态：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="status" id="status">
                            <option value="">请选择</option>
                            <option value="2" th:selected="${vo.status == 2}">正常</option>
                            <option value="1" th:selected="${vo.status == 1}">停用</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <!--查询与重置按钮
            查询按钮lay-filter属性统一定义为zmn-form-submit
            如查询条件较多，为节省横向空间，查询按钮使用小按钮(无文字“查询”)
            -->
        <div class="item-submit">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-form-submit"><i class="layui-icon">&#xe615;</i></button>
            <button type="reset" lay-filter="zmn-form-reset" lay-submit="" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe669;</i></button>
        </div>

    </div>

</div>

